/**
 * 功能:TK_MATERIAL_ALLOCATES Dao类
 * 开发人员:chengd
 * 创建时间:2012/4/23 17:56:16
 */
package com.towker.frame.dao.warehouse;

import org.springframework.stereotype.Repository;
import com.towker.core.db.BaseDao;
import com.towker.frame.model.warehouse.MaterialAllocates;

@Repository
@SuppressWarnings("unchecked")
public class MaterialAllocatesDao extends BaseDao<MaterialAllocates, Long>
{
	@Override
	public Class getEntityClass()
	{
		return MaterialAllocates.class;
	}
	
	/**
	 * 获取最后一个原材料调拨单号
	 * @return
	 */
	public String getLastMallocateCode(){
		return (String)getSqlSessionTemplate().selectOne(getIbatisMapperNamespace()+".getLastMallocateCode", null);
	}
}